package ah.collections;

public class Array {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		

	}

	public static byte[] convertToByteArray(String[] strs) {
		if (strs == null) {return null;}
		
		byte[] bytes = new byte[strs.length];
		
		int i = 0;
		for (String str : strs) {
			int num = Integer.parseInt(str);
			
			bytes[i++] = (byte)(num - 256);
		}
		
		return bytes;
	}
}
